<?php

/**
 * TypeJour filter form.
 *
 * @package    sopN
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormFilterTemplate.php 11675 2008-09-19 15:21:38Z fabien $
 */
class UniteFonctionnelleFormFilter extends BaseUniteFonctionnelleFormFilter {

  public function configure() {
    $this->useFields(array('libelle', 'asso_salarie_unite_fonctionnelle_list'));
    
    $this->widgetSchema['asso_salarie_unite_fonctionnelle_list']->addOption('renderer_class', 'sfWidgetFormSelectDoubleListSop')
                                                                ->addOption('renderer_options', array(
                                                                    'associated_first'    => false, 
                                                                    'label_unassociated'  => "Non associ&eacute;", 
                                                                    'label_associated'    => "Associ&eacute;"
                                                                ))
                                                                ->addOption('label', "Responsables")
                                                                ->setAttribute('size', 5);
    $this->validatorSchema['asso_salarie_unite_fonctionnelle_list'] = new sfValidatorPass(array('required' => false));
  }

}
